function *Generator() {
  yield "Hello Node"
  yield "From Lear"
  return "end"
}

var gen = Generator()
console.log(Object.getPrototypeOf(gen)) // Object [Generator] {}

console.log(gen[Symbol.iterator]) // Function: [Symbol.iterator]

for(let i of Generator()) {
  console.log(i) // Hello Node  From Lear
}
console.log(Array.from(Generator()))

